package com.example.dagger;

import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {

    @Inject
    Product product;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        DaggerFactoryActivityComponent.builder().build().inject(this);
//        DaggerFactoryActivityComponent.builder().
        Log.e("androidLog",product.str+"");
    }


}
